package com.dragon.modules.yuegou.model.coupon;

import com.dragon.modules.yuegou.entity.coupon.CouponScopeParkEntity;
import com.fasterxml.jackson.annotation.JsonView;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 模型类
 * 
 * @author pbuilder generated
 * @date 2019-03-29 10:58:22
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class CouponScopePark extends CouponScopeParkEntity {

	@ApiModelProperty("停车场名称")
	private String parkName;

	public String getParkName() {
		return parkName;
	}

	public void setParkName(String parkName) {
		this.parkName = parkName;
	}

	/**
	 * 构造一个空模型对象
	 */
	public CouponScopePark(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个模型对象
	 * 
	 * @param entity 实体对象
	 */
	public CouponScopePark(CouponScopeParkEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个模型对象
	 * 
	 * @param other 其它对象
	 */
	public CouponScopePark(CouponScopePark other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置
	 * 
	 * @param id 
	 * @return 当前对象
	 */
    public CouponScopePark id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getCouponTemplateId() {
    	return couponTemplateId;
    }

    /**
	 * 设置优惠券模板ID
	 * 
	 * @param couponTemplateId 优惠券模板ID
	 * @return 当前对象
	 */
    public CouponScopePark couponTemplateId(String couponTemplateId) {
    	this.couponTemplateId = couponTemplateId;
    	return this;
    }

	@Override
	public String getParkId() {
    	return parkId;
    }

    /**
	 * 设置停车场ID
	 * 
	 * @param parkId 停车场ID
	 * @return 当前对象
	 */
    public CouponScopePark parkId(String parkId) {
    	this.parkId = parkId;
    	return this;
    }
}
